// 获取当前日期
const today = new Date();

// 计算后天的日期
const afterTomorrow = new Date();
afterTomorrow.setDate(today.getDate() + 2);
console.log(afterTomorrow)
// 获取后天是星期几
const daysOfWeek = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
const afterTomorrowDayOfWeek = daysOfWeek[afterTomorrow.getDay()];

console.log('After tomorrow is:', afterTomorrowDayOfWeek);
